using Newtonsoft.Json;
/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "外协明细表",TableName = "Oginfo")]
    public partial class Oginfo:BaseEntity
    {
        /// <summary>
       ///编号
       /// </summary>
       [Key]
       [Display(Name ="编号")]
       [JsonIgnore]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int id { get; set; }

       /// <summary>
       ///外协单位
       /// </summary>
       [Display(Name ="外协单位")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string outsourcing_unit { get; set; }

       /// <summary>
       ///外协编号
       /// </summary>
       [Display(Name ="外协编号")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string outsourcing_number { get; set; }

       /// <summary>
       ///产品名称
       /// </summary>
       [Display(Name ="产品名称")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string product_name { get; set; }

       /// <summary>
       ///状态
       /// </summary>
       [Display(Name ="状态")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string status { get; set; }

       /// <summary>
       ///外协工序
       /// </summary>
       [Display(Name ="外协工序")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string outsourcing_process { get; set; }

       /// <summary>
       ///数量
       /// </summary>
       [Display(Name ="数量")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? quantity { get; set; }

       /// <summary>
       ///人民币单价
       /// </summary>
       [Display(Name ="人民币单价")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? rmb_unit_price { get; set; }

       /// <summary>
       ///人民币总价
       /// </summary>
       [Display(Name ="人民币总价")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? rmb_total_price { get; set; }

       /// <summary>
       ///币别
       /// </summary>
       [Display(Name ="币别")]
       [MaxLength(255)]
       [Column(TypeName="nvarchar(255)")]
       [Editable(true)]
       public string currency { get; set; }

       /// <summary>
       ///原币单价
       /// </summary>
       [Display(Name ="原币单价")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? original_currency_unit_price { get; set; }

       /// <summary>
       ///原币总价
       /// </summary>
       [Display(Name ="原币总价")]
       [DisplayFormat(DataFormatString="10,2")]
       [Column(TypeName="decimal")]
       [Editable(true)]
       public decimal? original_currency_total_price { get; set; }

       /// <summary>
       ///预计完成日期
       /// </summary>
       [Display(Name ="预计完成日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? expected_completion_date { get; set; }

       /// <summary>
       ///发货数
       /// </summary>
       [Display(Name ="发货数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? shipped_quantity { get; set; }

       /// <summary>
       ///收货数
       /// </summary>
       [Display(Name ="收货数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? received_quantity { get; set; }

       /// <summary>
       ///未收货数
       /// </summary>
       [Display(Name ="未收货数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? unreceived_quantity { get; set; }

       /// <summary>
       ///不合格数
       /// </summary>
       [Display(Name ="不合格数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? non_conforming_quantity { get; set; }

       /// <summary>
       ///收货日期
       /// </summary>
       [Display(Name ="收货日期")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? receipt_date { get; set; }

       /// <summary>
       ///逾期天数
       /// </summary>
       [Display(Name ="逾期天数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? overdue_days { get; set; }

       /// <summary>
       ///剩余天数
       /// </summary>
       [Display(Name ="剩余天数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? remaining_days { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime creation_time { get; set; }

       
    }
}
